package cn.edu.sptc.fanjing.hellospring.Bean;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
//主键
@ToString
@Slf4j
@Getter
@Setter
public class AutoWiredBean {
    private String id;
    private String name;
    public AutoWiredBean(){
        this.id="1001";
        this.name="张三";
        log.info("无参构造函数");
    }
    public AutoWiredBean(String id,String name){
        this.id=id;
        this.name=name;
        log.info("全参构造函数");
    }
}
